<%--
  Created by IntelliJ IDEA.
  User: 92329
  Date: 2018/4/18
  Time: 22:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common.jspf"%>
<html>
<head>
    <title>下载资源</title>
    <script>
        function closePage() {
            window.opener = null;
            window.open('', '_self');
            window.close();
        }
    </script>
</head>
<body>
<div style="width: 600px;margin: auto;padding-top: 20px">
    <div id="title" class="padding-b-5">
        <h1 class="text-center">${downloads.title}</h1>
    </div>
    <div id="info" class="text-right padding-b-5">
        <span id="datetime">${downloads.datetime}</span>
    </div>
    <div id="content" class="padding-b-5 padding-t-5">
        ${downloads.intro}
    </div>

    <div id="docs" class="padding-b-5">
        <br>
        附件：
        <c:forEach items="${downloads.docsList}" var="docs">
            <p><a href="${docs.url}" download="${docs.title}">${docs.title}</a></p>
        </c:forEach>
    </div>

    <div id="btn" class="text-right padding-b-5 padding-t-5">
        <button type="button" class="btn btn-default" onclick="closePage()">关闭</button>
    </div>
</div>
</body>
</html>
